package week2;

public class BoundingBox {

	//Member variables are visible within the whole class.
		Point upperLeft, lowerRight;

		
		//this is my constructor for Point class
		public BoundingBox(Point upperLeft, Point lowerRight){
				
			this.upperLeft = upperLeft;	
			this.lowerRight = lowerRight;
			//this.userPoint = userPoint;
		
		}

			

		public boolean isInside(Point userPoint){
			if (userPoint.x > upperLeft.x && userPoint.x < lowerRight.x 
					&& userPoint.y < upperLeft.y && userPoint.y > lowerRight.y)
			{
			return true;
			}
			else
			{
			return false;
			}
		}
	
		
	
	}


